package com.lucene.model;

import java.sql.Timestamp;
import java.util.Arrays;

/**
 * Created by zhangzhen on 22/09/2017.
 */
public class Project extends Prototype{

    private String key;
    private String name; //项目名称
    private String reporter; //问题报告者
    private String supporter; //问题支持者
    private String summary; //整体描述,摘要
    private String scheme; //解决方案
    private String schemeContext;//富文本格式
    private String description; //问题描述

    private Integer flag; //标记是否有同组问题
    private String descGroup; //类似问题组

    private String[] descriptions;//问题描述分词
    private float score; //排名分数

    public Project() {
    }

    public Project(Integer id, Integer flag, String descGroup) {
        this.setId(id);
        this.flag = flag;
        this.descGroup = descGroup;
    }

    public Project(String key, String name, String reporter, String supporter, String summary, String scheme, String schemeContext,String description, Integer flag, String descGroup, String[] descriptions) {
        this.key = key;
        this.name = name;
        this.reporter = reporter;
        this.supporter = supporter;
        this.summary = summary;
        this.scheme = scheme;
        this.schemeContext = schemeContext;
        this.description = description;
        this.flag = flag;
        this.descGroup = descGroup;
        this.descriptions = descriptions;
    }

    public Project(String key, String name, String reporter, String supporter, String summary, String scheme, String description) {
        this.key = key;
        this.name = name;
        this.reporter = reporter;
        this.supporter = supporter;
        this.summary = summary;
        this.scheme = scheme;
        this.description = description;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getReporter() {
        return reporter;
    }

    public void setReporter(String reporter) {
        this.reporter = reporter;
    }

    public String getSupporter() {
        return supporter;
    }

    public void setSupporter(String supporter) {
        this.supporter = supporter;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getScheme() {
        return scheme;
    }

    public void setScheme(String scheme) {
        this.scheme = scheme;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String[] getDescriptions() {
        return descriptions;
    }

    public void setDescriptions(String[] descriptions) {
        this.descriptions = descriptions;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public String getDescGroup() {
        return descGroup;
    }

    public void setDescGroup(String descGroup) {
        this.descGroup = descGroup;
    }

    public float getScore() {
        return score;
    }

    public void setScore(float score) {
        this.score = score;
    }

    public String getSchemeContext() {
        return schemeContext;
    }

    public void setSchemeContext(String schemeContext) {
        this.schemeContext = schemeContext;
    }

    @Override
    public String toString() {
        return "Project{" +
                "key='" + key + '\'' +
                ", name='" + name + '\'' +
                ", reporter='" + reporter + '\'' +
                ", supporter='" + supporter + '\'' +
                ", summary='" + summary + '\'' +
                ", scheme='" + scheme + '\'' +
                ", schemeContext='" + schemeContext + '\'' +
                ", description='" + description + '\'' +
                ", flag=" + flag +
                ", descGroup='" + descGroup + '\'' +
                ", descriptions=" + Arrays.toString(descriptions) +
                ", score=" + score +
                '}';
    }
}
